package com.example.mqltest.controler;

import com.example.mqltest.entity.Result;
import com.example.mqltest.service.AccountService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class AccountController {
    @Autowired
    private AccountService accountService;


    //登陆
    @GetMapping("/login")
    public Result login(@Param( "userId" )String userId,@Param( "password" )String password){
       return accountService.login( userId,password ) ;
    }

}
